package com.wowudi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;


@ApiModel(value="部门")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "department")
public class Department {
    /**
     * 部门ID
     */
    @TableId(value = "dp_id", type = IdType.AUTO)
    private Integer dpId;

    /**
     * 部门名称
     */
    @TableField(value = "dp_name")
    private String dpName;

    /**
     * 部门描述
     */
    @TableField(value = "dp_description")
    private String dpDescription;

    private static final long serialVersionUID = 1L;

}